import { PAGE_SIZE_BASE } from '@/constants/common';
import Xhr from './axios/xhr';

const getAllDataByBlockId = (blockId, index = 1, size=PAGE_SIZE_BASE, keyword = '') => Xhr.get(`/third_party/${blockId}/all?pageSize=${size}&pageIndex=${index}&keyword=${keyword}`);
const deleteDataByConditions = (blockId, id, userId) => Xhr.delete(`/third_party/${blockId}?userId=${userId}&id=${id}`);

export {
  getAllDataByBlockId,
  deleteDataByConditions
};
